package org.jsbd.boss.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.jsbd.boss.dao.IAppActionDAO;
import org.jsbd.boss.domian.statistics.AppAction;
import org.springframework.stereotype.Repository;

@Repository("appActionDao")
public class AppActionDAOImpl extends CrackStatisticsBaseDao implements IAppActionDAO {

	@Override
	public List<String> selectXaxis(String startTime, String mark) {
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("startTime", startTime);
		param.put("mark", mark);
		return super.queryForList("qy_app_action.SELECT_XAXIS", param);
	}

	@Override
	public List<AppAction> selectYaxis(String startTime, String mark) {
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("startTime", startTime);
		param.put("mark", mark);
		return super.queryForList("qy_app_action.SELECT_YAXIS", param);
	}

	@Override
	public String selectOneMark(String startTime) {
		return (String) super.queryForObject("qy_app_action.SELECT_ONE_MARK", startTime);
	}

}
